/*************************************************************************
 *
 * $Id: data.h 118 2007-01-22 16:46:40Z Ales $
 * 
 *************************************************************************/         

#ifndef _DATA_H
#define _DATA_H

#include "../global/data.h"

/* udaje ukladane lokalne do EEPROM terminalu; read-write pro terminal
 * pristup z terminalu: klavesnice
 */ 
typedef struct {
    unsigned char addr;
    signed char contrast;
    unsigned char sensor_index;
#if (DISPLAY == 1602)
    unsigned char info_index;
#elif (DISPLAY == 2004)
    unsigned char sensor_index2;
#endif
    unsigned char reset;
} EEDATA_STRUCT;


extern DESC_STRUCT desc;            // eeprom
extern EEDATA_STRUCT eedata;        // sram kopirovany z eeprom
extern STDATA_STRUCT stdata;        // sram
extern RWDATA_STRUCT rwdata;        // sram
extern RWDATA_STRUCT rwdata_undo;   // sram
extern unsigned long now;           // sram

extern Mutex DataLock;

extern void ReadEepromData(void);
extern void WriteEepromData(void);

#endif
